//
//  JSExportMessage.m
//  WebJS
//
//  Created by liuxiang on 2017/12/7.
//  Copyright © 2017年 liuxiang. All rights reserved.
//

#import "JSExportMessage.h"



@interface JSExportMessage()
@end

@implementation JSExportMessage

- (NSString *) sendMsssageToJS:(NSString *)message {
    NSLog(@"sendMsssageToJS = <%@> des = %@",message, self.description);
    return [@"success" stringByAppendingString:self.name];
}

- (void) receivedMessageFromJS:(NSString *)message {
    NSLog(@"receivedMessageFromJS = <%@> des = <%@>",message, self.description);

}

- (NSString *) description {
    self.desc = [super description];
    return [NSString stringWithFormat:@"name = <%@>, desc = %@",self.name, self.desc];
}

@end
